<?php
$mod_right_organization = MBGlobal::getAdminRecomm()->getMod(8);
$right_organization_arr = MBGlobal::getAdminRecomm()->showrRightOrg(0, $mod_right_organization['list'][0]['p2'], 1);
$right_organization_arr = formatUserList($right_organization_arr);

if($mod_right_organization['list'][0]['status']){
?>
<table width="288" border="0" cellspacing="0" cellpadding="0">
	<tr>
		<td height="25" colspan="3">&nbsp;</td>
	</tr>
	<tr>
		<td width="7">&nbsp;</td>
		<td>
			<table width="272" height="43" border="0" cellpadding="0" cellspacing="0" background="style/images/login/rightsidebar.gif">
				<tr>
					<td width="45">&nbsp;</td>
					<td width="185" align="center" valign="baseline" class="f18"><?php echo $mod_right_organization['list'][0]['name']?></td>
					<td width="42" align="left"><a href="#" target="_blank" class="whter"></a></td>
				</tr>
			</table>
		</td>
		<td width="7">&nbsp;</td>
	</tr>
	<tr>
		<td>&nbsp;</td>
		<td align="center" valign="top">
			<table border="0" cellspacing="5" cellpadding="0">
				<?php
				foreach ($right_organization_arr['list'] as $k=>$h){
					if($k!=1){
				?>
					<tr>
						<td height="10"></td>
					</tr>
					<?php
					}
					?>
					<tr>
						<td><a href="index.php?m=guest&u=<?php echo $h['uname']?>" target="_blank"><img src="<?php echo $h['url']?>" width="241" height="62" /></a></td>
					</tr>
				<?php
				}
				?>
			</table>
		</td>
		<td>&nbsp;</td>
	</tr>
</table>
<?php
}
?>